/*  

Cafechess Library: Cover basic chess programming needs, like GUI, Engine integration, 
FEN and PGN parsing.

                 \\|//
                 (o o)
--------------ooO-(_)-Ooo----------------------------------
Copyright (C) 2009  By Gregory A. Prentice Snoqualmie, WA
                    www.cafechess.org
                    cafechess@comcast.net
                      Oooo
--------------oooO----(  )---------------------------------
              (  )    (_/
               \_)

Microsoft Public License (Ms-PL)
               
Revisions:

Author        Date    Description:

*/
using System;
using System.Drawing;
namespace Cafechess.Chess.Controls
{
	/// <summary>
	/// Allows you to create a standalone IChessboardGui object.  Mainly
	/// for use in a web applications for generation of chessboard images
	/// for embedding in a html page or report.
	/// </summary>
	public class ChessImageFactory
	{
   	static ChessImageFactory()
		{      
		}
    /// <summary>
    /// Creates an interface that allows the generation of a chessboard graphics
    /// object that is normally used to simply generate bitmaps of chess positions.
    /// Normally used in conjunction with a web generated board for embedding in
    /// a page.
    /// </summary>
    /// <param name="rectangle"></param>
    /// <param name="background"></param>
    /// <returns></returns>
    public static IChessboardGui CreateIChessboardGui(Rectangle rectangle, Color background)
    {
      return new ChessSurface(rectangle, background);
    }

	}
}
